<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <button type="button" class="btn btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="brand" href="{:U('/Task/Index/index')}">Home</a>
            <div class="nav-collapse collapse" style="height: 0px; ">
                <ul class="nav">
                    <if condition="$login_role['role_id'] eq 3">
                        <li <if	condition="$nav eq 2">class="active"</if>><a href="{:U('/Task/My/')}">我的任务</a></li>
                    </if>
                    <if condition="$login_role['role_id'] eq 2">
                        <li <if condition="$nav eq 3">class="active"</if>><a href="{:U('/Task/Audit/')}">任务审核</a>
                    </if>
                    <if condition="$login_role['role_id'] eq 1">
                        <li <if condition="$nav eq 4">class="active"</if>>
                        <a href="{:U('/Task/Task/')}">任务列表</a>
                        </li>
                        <li <if condition="$nav eq 6">class="active"</if>><a href="{:U('/Task/User/')}">用户管理</a></li>
                        <li <if condition="$nav eq 7">class="active"</if>><a href="{:U('/Task/RoleUser/')}">权限管理</a>
                        </li>
                    </if>
                    <if condition="$login_role['role_id'] eq 5">
                        <li <if condition="$nav eq 10">class="active"</if>>
                        <a href="{:U('/Task/Mall/')}">商场活动</a>
                        </li>
                        <li <if condition="$nav eq 11">class="active"</if>>
                        <a href="{:U('/Task/Phone/')}">商场号码</a>
                        </li>
                    </if>
                    <li <if condition="$nav eq 9">class="active"</if>>
                    <a href="{:U('/Task/Material/')}">维护任务</a>
                    </li>
                    <li <if condition="$nav eq 8">class="active"</if>><a href="{:U('/Task/Member/')}">用户中心</a></li>
                    <li>
                        <a href="{:U('/Home/Public/loginOut')}">退出</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
